package com.xiao.controller;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import javax.xml.ws.Response;
import java.io.IOException;

@Controller

public class testController {


    @RequestMapping("/t1")
public String test(){
return "hello";
    }
    @RequestMapping("/t2")
    public  void t2(String name, HttpServletResponse response) throws IOException {
    System.out.println("a1:param+>"+name);
    if("woqu".equals(name)){
    response.getWriter().print("true");
}else{
    response.getWriter().print("false");
}
}

}
